package com.hrprojectback.service.impl.ShuXingSheZhiServiceImpl.DeptShuXingServiceImpl;

import com.hrprojectback.dto.DeptType;
import com.hrprojectback.mapper.DeptShuXingMapper;
import com.hrprojectback.service.ShuXingSheZhiService.DeptShuXingService.DeptShuXingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptShuXingServiceImpl implements DeptShuXingService {

    @Autowired
    private DeptShuXingMapper deptTypeMapper;
    @Override
    public Integer getDeptTypeCounts(String typeCode, String typeName) {
        Integer DeptTypeCounts = deptTypeMapper.getDeptTypeCounts(typeCode, typeName);
        return DeptTypeCounts;
    }

    @Override
    public List<DeptType> getDeptType(String typeCode, String typeName, int pageStart, int pageSize) {
        List<DeptType> deptTypes = deptTypeMapper.getDeptType(typeCode, typeName, pageStart, pageSize);
        return deptTypes;
    }

    @Override
    public int addDeptType(DeptType deptType) {
        int i = deptTypeMapper.addDeptType(deptType);
        return i;
    }

}
